home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / gnuplot / makefile.win < prev    next >
Makefile  |  1993-05-11  |  6KB  |  210 lines

  1. # make file for Borland C++ 3.1 Windows version
  2. # The compile and link includes debug flags.  Take them out if you
  3. # do not want them included  (-y -v -M, /m /s /v /l)
  4.  
  5. # where to place wgnuplot.hlp helpfile
  6. HELPFILE = wgnuplot.hlp
  7. # location of Borland C compiler
  8. TC = c:\borlandc
  9. # name of C compiler
  10. CC = bcc
  11. # location of TLINK.EXE and BCC.EXE
  12. BIN = $(TC)\bin\\
  13.  
  14. # -c means don't link
  15. # -ml means use large model (large code, large data)
  16. # -M means produce link map
  17. # -y means include line numbers for debugger
  18. # -v means include debug info
  19. # -w- means ignore warnings and do not report them
  20. # -w-rvl ignore function must return a value error
  21. # -Ff=128 means make data object > 128 FAR
  22. # -W means window application
  23. # -DREADLINE to use the history/line editing capability. If you want this 
  24. #    capability add -DREADLINE to CFLAGS then add 'readline' to the /o
  25. #    section of the linker call.
  26. CFLAGS = -c -W -ml -M -y -v -w-rvl -w-pro -Ff=128 -I$(TC)\include -Iwin -DREADLINE -zEGPFAR_DATA
  27. TERMFLAGS =
  28.  
  29. OBJS =     bitmap.obj command.obj contour.obj eval.obj graphics.obj graph3d.obj \
  30.     internal.obj misc.obj parse.obj plot.obj readline.obj scanner.obj \
  31.     setshow.obj specfun.obj standard.obj term.obj util.obj version.obj \
  32.     gnubin.obj binary.obj winmain.obj
  33.  
  34. CSOURCE5 = term\aed.trm term\cgi.trm term\dumb.trm term\dxy.trm \
  35.     term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
  36.     term\hp2648.trm term\hpgl.trm term\hpljii.trm 
  37. CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
  38.     term\iris4d.trm term\kyo.trm term\latex.trm term/pbm.trm term\win.trm
  39. CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
  40.     term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
  41.     term\v384.trm term\x11.trm
  42. CSOURCE8 = contour.c specfun.c gnubin.c binary.c
  43. WINDOWS = makefile.win makefile.msw README.win win\wcommon.h \
  44.     win\wgnuplib.c win\wgnuplib.def win\wgnuplib.h win\wgnuplib.rc\
  45.     win\wgnuplot.def win\wgnuplot.hpj win\wgnuplot.mnu win\wgnuplot.rc \
  46.     win\wgraph.c win\winmain.c win\wmenu.c win\wpause.c \
  47.     win\wprinter.c win\wresourc.h win\wtext.c win\wtext.h \
  48.     win\geticon.c docs\doc2rtf.c term\win.trm
  49.  
  50. all: wgnuplot.exe wgnuplot.dll $(HELPFILE) wgnuplot.mnu demo\bf_test.exe
  51.  
  52. wgnuplot.exe: $(OBJS) win\wgnuplot.def win\wgnuplot.rc winmain.obj wgnuplot.lib
  53. #    $(BIN)tlink /Twe /c @&&!
  54.     $(BIN)tlink /Twe /c /m /s /v /l @&&!
  55. $(TC)\lib\C0Wl +
  56. bitmap command eval graphics graph3d internal misc parse +
  57. plot scanner setshow specfun standard term util version contour +
  58. gnubin binary +
  59. winmain +
  60. readline +
  61. ,wgnuplot,wgnuplot, +
  62. wgnuplot.lib +
  63. $(TC)\lib\import +
  64. $(TC)\lib\mathwl +
  65. $(TC)\lib\cwl, +
  66. win\wgnuplot.def
  67. !
  68.     $(BIN)brc -30 -k -i$(TC)\include win\wgnuplot.rc wgnuplot.exe
  69.  
  70. # default rules
  71.  
  72. .c.obj:
  73.     $(BIN)$(CC) @&&!
  74. $(CFLAGS)
  75. ! $<
  76.  
  77. # rules
  78.  
  79. bitmap.obj: bitmap.c bitmap.h plot.h
  80.  
  81. command.obj: command.c plot.h setshow.h 
  82.     $(BIN)$(CC) @&&!
  83. $(CFLAGS) -DHELPFILE="$(HELPFILE)"
  84. ! command.c
  85.  
  86. contour.obj: contour.c plot.h
  87.  
  88. eval.obj: eval.c plot.h
  89.  
  90. graphics.obj: graphics.c plot.h setshow.h
  91.  
  92. graph3d.obj: graphics.c plot.h setshow.h
  93.  
  94. internal.obj: internal.c plot.h
  95.  
  96. misc.obj: misc.c plot.h setshow.h 
  97.  
  98. parse.obj: parse.c plot.h
  99.     $(BIN)$(CC) @&&!
  100. $(CFLAGS)
  101. ! parse.c
  102.  
  103. plot.obj: plot.c plot.h setshow.h
  104.     $(BIN)$(CC) @&&!
  105. $(CFLAGS)
  106. ! plot.c
  107.  
  108. readline.obj: readline.c plot.h
  109.  
  110. scanner.obj: scanner.c plot.h
  111.  
  112. setshow.obj: setshow.c plot.h setshow.h
  113.  
  114. specfun.obj: specfun.c
  115.  
  116. standard.obj: standard.c plot.h
  117.  
  118. term.obj: term.c term.h plot.h setshow.c bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7) win\wgnuplib.h
  119.     $(BIN)$(CC) @&&!
  120. $(CFLAGS)
  121. ! $(TERMFLAGS) -Iterm term.c
  122.  
  123. util.obj: util.c plot.h
  124.  
  125. version.obj: version.c
  126.  
  127. winmain.obj: win\winmain.c win\wgnuplib.h win\wtext.h plot.h
  128.     $(BIN)$(CC) @&&!
  129. $(CFLAGS) -DHELPFILE="$(HELPFILE)"
  130. ! win\winmain.c
  131.  
  132. wgnuplot.mnu: win\wgnuplot.mnu
  133.     copy win\wgnuplot.mnu wgnuplot.mnu
  134.  
  135.  
  136. # different compiler options for DLL's */
  137. DLLCC = $(BIN)bcc -c -ms! -M -y -v -WD -I$(TC)\include -Iwin
  138. DLLOBJS = wgnuplib.obj wtext.obj wmenu.obj wpause.obj wgraph.obj wprinter.obj 
  139.  
  140. wgnuplot.lib: wgnuplot.dll
  141.     $(BIN)implib wgnuplot.lib wgnuplot.dll
  142.  
  143. wgnuplot.dll: $(DLLOBJS) win/wgnuplib.def win/wgnuplib.rc
  144.     $(BIN)tlink /c /n /Twd /L$(TC)\lib /m /s /v /l @&&!
  145. c0ds +
  146. wgnuplib wtext wmenu wpause wgraph wprinter, +
  147. wgnuplot.dll, +
  148. wgnuplib.map, +
  149. import mathws cws, +
  150. win\wgnuplib.def
  151. !
  152.     $(BIN)brc -30 -i$(TC)\include -t win\wgnuplib.rc wgnuplot.dll
  153.  
  154. wgnuplib.obj: win/wgnuplib.c win/wgnuplib.h win/wcommon.h win/wresourc.h
  155.     $(DLLCC) win/wgnuplib.c
  156.     
  157. wmenu.obj: win/wmenu.c win/wgnuplib.h win/wcommon.h win/wresourc.h
  158.     $(DLLCC) win/wmenu.c
  159.  
  160. wtext.obj: win/wtext.c win/wgnuplib.h win/wcommon.h win/wresourc.h
  161.     $(DLLCC) win/wtext.c
  162.     
  163. wpause.obj: win/wpause.c win/wgnuplib.h win/wcommon.h win/wresourc.h
  164.     $(DLLCC) win/wpause.c
  165.     
  166. wprinter.obj: win/wprinter.c win/wgnuplib.h win/wcommon.h win/wresourc.h
  167.     $(DLLCC) win/wprinter.c
  168.     
  169. wgraph.obj: win/wgraph.c win/wgnuplib.h win/wcommon.h win/wresourc.h
  170.     $(DLLCC) win/wgraph.c
  171.     
  172. # convert gnuplot.doc to gnuplot.gih
  173. $(HELPFILE): doc2rtf.exe docs\gnuplot.doc win\wgnuplot.hpj
  174.     doc2rtf docs\gnuplot.doc win\gnuplot.rtf
  175.     $(BIN)hc win\wgnuplot.hpj 
  176.  
  177. doc2rtf.exe: docs\doc2rtf.c
  178.     $(BIN)$(CC) -ml -w-pro -I$(TC)\include -L$(TC)\lib docs\doc2rtf.c
  179.  
  180. # make binary demo files
  181. demo\bf_test.exe: bf_test.c dbinary.obj
  182.     $(BIN)$(CC) -edemo\bf_test.exe -w-pro -ml -I$(TC)\include -L$(TC)\lib bf_test.c dbinary.obj
  183.     cd demo
  184.     bf_test
  185.     cd ..
  186.  
  187. dbinary.obj: binary.c
  188.     $(BIN)$(CC) -c -w-pro -ml -I$(TC)\include -odbinary.obj binary.c
  189.  
  190. # clean up temporary files
  191. clean:
  192.     del *.obj
  193.     del wgnuplot.map
  194.     del win\wgnuplot.res
  195.     del win\gnuplot.rtf
  196.     del doc2rtf.exe
  197.     del win\wgnuplib.res
  198.     del wgnuplib.map
  199.     del wgnuplot.lib
  200.     del demo\bf_test.exe
  201.     
  202. veryclean: clean
  203.     del wgnuplot.exe
  204.     del wgnuplot.hlp
  205.     del wgnuplot.mnu
  206.     del wgnuplot.dll
  207.     del demo\binary1
  208.     del demo\binary2
  209.     del demo\binary3
  210.